if [[ -n $(pgrep aria2c) ]]; then
    kill $(pgrep aria2c)
    echo "stop aria2c"
fi

if [[ -n $(pgrep rydownloader) ]]; then
    kill $(pgrep rydownloader)
    echo "stop rydownloader"
fi
